#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    bool CheckPermutation(string s1, string s2) {
        int hashi[26] = { 0 };
        for (auto e : s1)
        {
            hashi[e - 'a']++;
        }
        for (auto e : s2)
        {
            hashi[e - 'a']--;
        }
        for (int i = 0; i < 26; i++)
        {
            if (hashi[i]) return false;
        }
        return true;
    }
};